<template>
  <div class="app-container">
    <!-- 切换 -->
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="我的仪器" name="1">
        <Myinstrument />
      </el-tab-pane>
      <el-tab-pane label="已申请领取仪器" name="2">
        <Claimed />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Myinstrument from "./components/Myinstrument";
import Claimed from "./components/Claimed";

export default {
  components: { Myinstrument ,Claimed},
  data() {
    return {
      //默认tab切换为1
      activeName: "1",
    };
  },
  methods: {
    //点击tab切换
    handleClick() {
      this.activeName = "2";
    },
  },
};
</script>

<style scoped lang="scss" >
.clearfix {
  line-height: 40px;
  display: flex;
}
</style>
